package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.provider.mapper.JobLogsMapper;
import com.weixing.mall.provider.model.domain.JobLogs;
import com.weixing.mall.provider.service.IJobLogsService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 定时任务 -执行日志表 服务实现类
 * </p>
 *
 * @author Small
 * @since 2020-05-09
 */
@Service
public class JobLogsServiceImpl extends ServiceImpl<JobLogsMapper, JobLogs> implements IJobLogsService {

    @Override
    public IPage<JobLogs> findListPage(Page page, Map map) {
        QueryWrapper<JobLogs> q = new QueryWrapper<>();
        q.select("*");
        q.like("jobName",map.get("jonName"));
        q.like("jobGroup",map.get("jobGroup"));
        return page(page, q);
    }
}
